#ifndef LOOKINGTINGSWIDGET_H
#define LOOKINGTINGSWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QListWidget>
#include <QListWidgetItem>

#include "view/tingscountwidget.h"
#include "view/tingswarningwidget.h"
#include "view/tingssearhingwidget.h"

class LookingTingsWidget : public QWidget
{
    Q_OBJECT
public:
    explicit LookingTingsWidget(QWidget *parent = nullptr);
    void init_Control();
    void init_Widget();
    void init_Connect();//初始化连接信号和槽

private:
    QPushButton *tingsCountBtn;
    QPushButton *tingsWarningBtn;
    QPushButton *tingsSearhingBtn;
    QPushButton *returnBtn;

    QVBoxLayout *VLay;
    QHBoxLayout *HLay;

    TingsCountWidget *tingsCountWidget;
    TingsWarningWidget *tingsWarningWidget;
    TingsSearhingWidget *tingsSearhingWidget;


signals:
    void returnManager();

public slots:
    void on_tingsCountBtn_cliked();//注册按钮的槽函数
    void on_tingsWarningBtn_cliked();
    void on_tingsSearhingBtn_cliked();
    void on_returnBtn_cliked();
    void showMyself();
};

#endif // LOOKINGTINGSWIDGET_H
